//
//  UIViewController+ZKViewControllerTransition.h
//  朱凯的工具箱
//
//  Created by pro on 17/5/12.
//  Copyright © 2017年 zhukai. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "ZKTransitionAnimator.h"

#ifndef SCREEN_WIDTH
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define FONT(F) [UIFont systemFontOfSize:F]
#define B_FONT(F) [UIFont boldSystemFontOfSize:F]
#define KZThemeColor [UIColor colorWithR:80 g:172 b:245 a:1]
#define KZThemeColor2 [UIColor colorWithHex:0x12BCB7]
#define W(w) (int)(w / 375.0 * SCREEN_WIDTH)
#define H(h) (int)(h / 667.0 * SCREEN_HEIGHT)
#define kzRGBA(r, g, b, a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#endif


@interface UIViewController (ZKViewControllerTransition)

// 跳转方法
- (void)zk_presentViewController:(UIViewController *)vc
                        animator:(ZKTransitionAnimator *)animator
                 backInteractive:(bool)backInteractive;

// 注册present手势
- (void)zk_registerToInteractive:(dispatch_block_t)operationBlock
                   gestureConfig:(void(^)(ZKGestureConfigFetch fetch))gestureConfig;

// 注册dismiss手势
- (void)zk_registerBackInteractive:(dispatch_block_t)operationBlock
                     gestureConfig:(void(^)(ZKGestureConfigFetch fetch))gestureConfig;


@end
